/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sample2;

/**
 *
 * @author RoderickNestor
 */
public class MainClaz  {
        public static void main(String[] args) {
                StudentJDBCDAO student = new StudentJDBCDAO();
                StudentBean alok = new StudentBean();
                alok.setName("Alok");
                alok.setRollNo(8);
                alok.setCourse("MBA");
                alok.setAddress("Ranchi");
                StudentBean tinkoo = new StudentBean();
                tinkoo.setName("Arvind");
                tinkoo.setRollNo(6);
                // Adding Data
                student.add(alok);
                // Deleting Data
                student.delete(7);
                // Updating Data
                student.update(tinkoo);
                // Displaying Data
                student.findAll();
        }
}